//package com.iwhalecloud.bss.kite.cucc.common.config;
//
//import com.iwhalecloud.bss.kite.cucc.common.mybatis.TranInterceptor;
//import org.apache.ibatis.session.SqlSessionFactory;
//import org.mybatis.spring.SqlSessionFactoryBean;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * MyBatis拦截器配置
// */
//@Configuration
//@ConditionalOnClass({SqlSessionFactory.class, SqlSessionFactoryBean.class})
//public class MyBatisInterceptorConfig {
//
//    /**
//     * 拦截判断是否使用Spring的事务管控
//     * @return
//     */
//    @Bean
//    public TranInterceptor tranInterceptor() {
//        return new TranInterceptor();
//    }
//}
